package com.example.helloworld;

public class Penguin {
    private String name;
    private int id;
    public Penguin(String name, int id) {
        this.name = name;
        this.id = id;
    }
    public void eat() {
        System.out.println(name + " is eating.");
    }

    public void sleep() {
        System.out.println(name + " is sleeping.");
    }

    public void introduce() {
        System.out.println("My name is " + name + " and my id is " + id + ".");
    }
}
